{{!-- // 基于template/src/views/\{{appModules}}/\{{pages@DEWFDYNAEDITVIEW}}/\{{spinalCase page.codeName}}-model.ts.hbs生成
import { IWFDynaEditViewModel } from "@/core/interface/view/model";
function getModel(): IWFDynaEditViewModel {
    return {
        {{> @macro/view/view-model.hbs page=page}}
        dynamicForm: [
        {{#each page.ctrls as | ctrl |}}
            {{#eq ctrl.controlType 'FORM'}}
            {
                codeName: "{{ctrl.codeName}}",
                name: "{{ctrl.name}}",
                actions: {
                    loadAction: '{{#and ctrl.getPSControlAction ctrl.getPSControlAction.psAppDEMethod}}{{ctrl.getPSControlAction.psAppDEMethod.codeName}}{{else}}Get{{/and}}',
                    loadDraftAction: '{{#and ctrl.getDraftPSControlAction ctrl.getDraftPSControlAction.psAppDEMethod}}{{ctrl.getDraftPSControlAction.psAppDEMethod.codeName}}{{else}}GetDraft{{/and}}',
                    updateAction: '{{#and ctrl.updatePSControlAction ctrl.updatePSControlAction.psAppDEMethod}}{{ctrl.updatePSControlAction.psAppDEMethod.codeName}}{{else}}Update{{/and}}',
                    createAction: '{{#and ctrl.createPSControlAction ctrl.createPSControlAction.psAppDEMethod}}{{ctrl.createPSControlAction.psAppDEMethod.codeName}}{{else}}Create{{/and}}',
                    removeAction: '{{#and ctrl.removePSControlAction ctrl.removePSControlAction.psAppDEMethod}}{{ctrl.removePSControlAction.psAppDEMethod.codeName}}{{else}}Remove{{/and}}',
                    wfSubmitAction: '{{#if ctrl.wFSubmitPSControlAction}}{{ctrl.wFSubmitPSControlAction.actionName}}{{/if}}',
                    wfStartAction: '{{#if ctrl.wfStartPSControlAction}}{{ctrl.wfStartPSControlAction.actionName}}{{/if}}',
                }
            },
            {{/eq}}
        {{/each}}
        ],
        viewRef: [
            {{#if page.psAppViewRefs}}
            {{#each page.psAppViewRefs as | viewRef |}}
            {{#and (neq viewRef.name "NEWDATA") (neq viewRef.name "EDITDATA")}}
            {
                name: "{{viewRef.name}}",
                viewName: "{{viewRef.codeName}}"
            },
            {{/and}}
            {{/each}}
            {{/if}}
        ]
    }
}
export const model = getModel(); --}}